<php>
//phpinfo();
</php>
<style>
	table tr td{
		border:1px solid red;
		padding : 5px;
	}
</style>
<table>
		<tr>
			<td>ID</td>
			<td>姓名</td>
			<td>密码</td>
			<td>性别</td>
			<td>肖像</td>
			<td>爱好</td>
			<td>邮件</td>
			<td>生日</td>
			<td>操作</td>
		</tr>
		
	<volist name="personList" id="person"><br/>
		
		<tr>
			<td>{$person.id}</td>
			<td>{$person.name}</td>
			<td>{$person.password}</td>
			<td>{$person.sex|getSexString}</td>
			<td>{$person.portrait}</td>
			<td>{$person.hobby}</td>
			<td>{$person.email}</td>
			<!-- 
			<td>{$person.birthday|date='Y-m-d',###}</td>
			 -->
			<td>{$person['birthday'] | date='Y-m-d',###}</td>
			<td>
				<a href="{:U('Home/Person/updatePerson')}?id={$person.id}" style="margin-right:10px;">修改</a>
				<a href="{:U('Home/Person/delPerson')}?id={$person.id}">删除</a>
			</td>
		</tr>
	</volist>
	
	
</table>

<!-- 直接使用PHP代码 -->
<php>
	$timeStamp = 596822400;
	echo date('Y-m-d',$timeStamp);
	echo "<br>";
	echo "<br>";
	echo 596822400;
	echo "<br>";
	
	$birthday = '1988-11-30';
	echo strtotime($birthday);
	
</php>